﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tracy.DataModel;
using SharedLib.BasicServices.MessageFramework;

namespace Tracy.Messages
{
    public class GetXmlFromFeedSourceMessage : GetXmlFromURLMessage
    {
        private FeedSource _source;

        public FeedSource Source
        {
            get { return _source; }
            set { _source = value; }
        }

        private Entry _entry;

        public Entry Entry
        {
            get { return _entry; }
            set { _entry = value; }
        }

        public GetXmlFromFeedSourceMessage(object sender, FeedSource source, Entry entry, MessageCallback callback)
            : base(sender, source.GenerateUrl(entry), callback)
        {
            _source = source;
            _entry = entry;
        }

        public override Type Handler
        {
            get { return typeof(Tracy.Handlers.GetXmlFromURLHandler_UI); }
        }
    }
}
